<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>签约合同详情</title>
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    首页 <span class="c-gray en">&gt;</span> 客户管理 <span class="c-gray en">&gt;</span> 合同管理 <span class="c-gray en">&gt;</span> 签约合同详情
    <!--<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >-->
    <!--<i class="Hui-iconfont">&#xe68f;</i></a>-->
</nav>
<article class="page-container">
    <form class="ml-20 mr-20" id="form-member-add"  method="post">
        <div id="signcontract_lsit">
            <script id="signcontract_bob" type="text/x-dot-template">
        <div class=" pd-5 bg-1 bk-gray mt-10">
            <div class="va-m pl-10 lh-50 f-17 f-16">
                <strong>客户基本信息</strong>
                <a class="f-r mr-20 c-color f-14" onclick="basic_aedit('客户基本信息','basic_edits.html','{{=it.operate_manager_id}}','{{=it.operate_manager_name}}','{{=it.purchase_goods_intro}}')">编辑</a>
            </div>
            <table class="table-hover table_li ml-10">
                <thead class="text-l">
                <tr >
                    <td>
                        <span>客户ID: <span  class="text-overflow" style="width: 10px">{{=it.customer_id}}</span></span>
                    </td>
                    <td>
                        <span>合同号: <span>{{=it.bel_contract_num}}</span></span>
                    </td>
                    <td>
                        <span>老系统合同号: <span>{{=it.old_sys_contract_num}}</span></span>
                    </td>
                    <td>
                        <span>客户类型: <span class="text-overflow" style="width: 10px">{{=it.customer_type}}</span></span>
                    </td>
                    <td>
                        <span>客户名称: <span>{{=it.customer_name}}</span></span>
                    </td>
                    <td>

                    </td>
                </tr>

                <tr >
                    <td colspan="6" >
                        <span>采购商品简述: <span>{{=it.purchase_goods_intro}}</span></span>
                </tr>
                    </td
                <tr >
                    <td>
                        <span>合同状态: <span class="text-overflow" style="width: 10px">
                             {{if( it.new_contract_state == 1 ){ }}
                                </span>正常</span>
                            {{ }else if( it.new_contract_state == 2 ){ }}
                                </span>冻结</span>
                            {{ }else if( it.new_contract_state == 3){ }}
                                </span>关闭</span>
                            {{ } }}
                    </td>
                    <td>
                        <span>合同类型: <span>{{=it.contract_type}}</span></span>
                    </td>
                    <td>
                        <span>申请时间: <span>{{=it.appr_date}}</span></span>
                    </td>
                    <td>
                        <span>签约时间: <span>{{=it. qy_create_date}}</span></span>
                    </td>
                    <td>
                        <span>合同有效期: <span>{{=it.con_end_date	}}</span></span>
                    </td>
                </tr>
                <tr >
                    <td colspan="6" >
                        <label class="f-l">客户简介：</label>
                        <div class="formControls col-xs-8 col-sm-9 mt-10 mb-10">
                            <textarea name="abstract" class="textarea"  readonly="readonly" title="不可输入">{{=it.introduct}}</textarea>
                        </div>
                    </td>
                </tr>
                <tr >
                    <td>
                        <span>客户联系人: <span class="text-overflow" style="width: 10px">{{=it.linkman}}</span></span>
                    </td>
                    <td>
                        <span>职位: <span>{{=it.duty}}</span></span>
                    </td>
                    <td>
                        <span>客户地址: <span>{{=it.address}}</span></span>
                    </td>
                    <td>
                        <span>固话: <span>{{=it.office_phone}}</span></span>
                    </td>
                    <td>
                        <span>手机: <span>{{=it.mobile}}</span></span>
                    </td>
                    <td>
                        <span>邮箱: <span>{{=it.customer_email}}</span></span>
                    </td>

                </tr>
                <tr >

                    <td colspan="5" >
                        <span> 授权收货人: <span>{{=it.auth_consignee}}</span></span>
                        <a class="c-color ml-30"  onclick="more_edit('授权收货人','contr_see_more.html')">查看更多 >></a>
                    </td>
                </tr>
                </thead>
            </table>
            <div class="line mt-10"></div>
            <div class="cl mt-10">
                <table class="table-hover table_li ml-10  f-l" style="width: 40%;">
                    <thead class="">
                 <!--   <tr>
                        <td rowspan="6" width="30" valign="top">
                            客户资质:
                        </td>
                    </tr>-->
                    <tr >
                        <th style="width: 26px;">客户资质:</th>
                        <td width="50">
                            <span>企业营业执照</span>
                        </td>
                        <td width="20">
                            <span>有</span>
                        </td>
                        <td width="70">
                            <img class="mr-10" width="50" height="50" src="{{=it.group_business_license_addr}}">
                        </td>
                    </tr>
                    <tr >
                        <th></th>
                        <td width="50">
                            <span>企业开户许可证</span>
                        </td>
                        <td width="20">
                            <span>有</span>
                        </td>
                        <td width="70">
                            <img class="mr-10 mt-10" width="50" height="50" src="{{=it.group_opening_account_addr}}">
                        </td>
                    </tr>
                    <tr >
                        <th></th>
                        <td width="50">
                            <span>企业法人身份证</span>
                        </td>
                        <td width="20">
                            <span>有</span>
                        </td>
                        <td width="70">
                            <img class="mr-10 mt-10" width="50" height="50" src="{{=it.group_IDcard_url1}}">
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td width="50">
                            <span>委托授权书</span>
                        </td>
                        <td width="20">
                            <span>有</span>
                        </td>
                        <td width="70">
                            <img class="mr-10 mt-10" width="50" height="50" src="{{=it.group_loa}}">
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td width="50">
                            <span>企业logo</span>
                        </td>
                        <td width="20">
                            <span>有</span>
                        </td>
                        <td width="70">
                            <img title="" width="50" height="50" src="{{=it.logo}}" class="myImg" >
                        </td>
                    </tr>
                    </thead>
                </table>
                <div class="row f-l table_w50 ml-20 mt-20" >
                    <label class="f-l">备注信息：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <textarea name="abstract" class="textarea"  readonly="readonly" title="不可输入">{{=it.remark}}</textarea>
                    </div>
                </div>
            </div>
            <div class="pl-10 lh-30 mb-10 mt-10">
                <span >客户归属: <span>{{=it.organization_name}}</span></span>
                <span class="ml-40">营销主管: <span>{{=it.saleManagerName}}</span></span>
                <span class="ml-40">运营经理: <span id="operate_manager_name">{{=it.operate_manager_name}}</span><span id="operate_manager_id" style="display: none">{{=it.operate_manager_id}}</span></span>
            </div>
            <div class="line mt-10"></div>
        </div>
        <div class=" pd-5 bg-1 bk-gray mt-10">
            <div class="va-m pl-10 lh-50 f-17 f-16">
                <strong>签约信息</strong>
                <a class="f-r mr-20 c-color f-14" onclick="ood_edit('签约信息编辑','ood_edit.html','{{=it.price_system}}','{{=it.express_policy}}','{{=it.ftotalmount}}','{{=it.tick_quota}}','{{=it.checkout_cycle}}','{{=it.credit}}','{{=it.payment_date}}','{{=it.balance_way}}','{{=it.balance_day}}','{{=it.balance_remark}}','{{=it.settle_cycle_first}}','{{=it.settle_cycle_second}}','{{=it.settle_cycle_third}}','{{=it.purchase_goods_intro}}','{{=it.customer_type}}')">编辑</a>
            </div>
            <table class="table-hover table_li ml-10">
                <thead class="text-l">
                <tr >
                    <td>
                        <span>合同号: <span>{{=it.contract_num}}</span></span>
                    </td>
                    <td>
                        {{? it.price_system=="1"}}
                        <span>价格体系: <span>大客户价格</span></span>
                        {{??}}
                        <span>价格体系: <span>品类折扣价</span></span>
                        {{}}}
                    </td>
                    <td>
                        {{? it.express_policy=="1"}}
                        <span>运费政策: <span>3000元以上免费</span></span>
                        {{??}}
                        <span>运费政策: <span>全免费</span></span>
                        {{}}}
                    </td>
                </tr>
            <!--    <tr>
                    &lt;!&ndash;<td colspan="1">&ndash;&gt;
                        &lt;!&ndash;<span class="mr-10">发票资质:</span>&ndash;&gt;
                        &lt;!&ndash;<img title="营业许可证" width="70" src="../../static/h-ui.admin/images/um.gif">&ndash;&gt;
                        &lt;!&ndash;<img class="ml-10" title="开户许可证" width="70" src="../../static/h-ui.admin/images/um.gif">&ndash;&gt;
                        &lt;!&ndash;<a class="c-color ml-30">查看更多 >></a>&ndash;&gt;
                    &lt;!&ndash;</td>&ndash;&gt;
                    <td colspan="2">
                        <span>商品池管理: <span>范围 </span> <span>明细 </span><span>类品 </span><span>电工电料</span>....</span>
                        &lt;!&ndash;<a class="c-color ml-30">查看更多 >></a>&ndash;&gt;
                    </td>
                </tr>-->
                <tr>
                    <!--<td colspan="1">-->
                        <!--<span class="mr-10">绿色通道附件:</span>-->
                        <!--<img class=" mt-10 mb-10" title="审批邮件" width="70" src="../../static/h-ui.admin/images/um.gif">-->
                    <!--</td>-->
                </tr>
                <tr >
                    <td>
                        <span>结算方式: <span>{{=it.balance_way}}</span></span>
                    </td>
                    <!--<td>
                        <span>结算日期: <span>
                        {{? it.balance_day==undefined}}
                          <span></span>
                        {{??}}
                        <span>{{=it.balance_day}}</span>
                        {{ } }}
                    </span>
                    </td>-->
                    <td>
                        <span>结算依据: <span>{{=it.fcontractcontent}}</span></span>
                    </td>
                </tr>
                <tr >
                    <td>
                        <span>合同额度: <span>{{=it.ftotalmount}}</span></span>
                    </td>
                    <td>
                        <span>信用额度: <span>{{=it.credit}}</span></span>
                    </td>
                    <td>
                        <span>执行赊欠额度: <span>{{=it.tick_quota}}</span></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>执行结算周期:
                            {{? it.settle_cycle_first=='' || it.settle_cycle_second=='' || it.settle_cycle_third==''}}
                              <span></span>
                            {{?? it.settle_cycle_first == 1}}
                            <span>当月{{=it.settle_cycle_second}}日前，结算{{=it.settle_cycle_third}}日之前所有货款</span></span>
                                {{?? it.settle_cycle_first == 2}}<span>次月{{=it.settle_cycle_second}}日前，结算{{=it.settle_cycle_third}}日之前所有货款</span></span>
                                {{?? it.settle_cycle_first == 3}}<span>第三个月{{=it.settle_cycle_second}}日前，结算{{=it.settle_cycle_third}}日之前所有货款</span></span>
                                {{?? it.settle_cycle_first == 4}}<span>第四个月{{=it.settle_cycle_second}}日前，结算{{=it.settle_cycle_third}}日之前所有货款</span></span>
                                {{?? it.settle_cycle_first == 5}}<span>第五个月{{=it.settle_cycle_second}}日前，结算{{=it.settle_cycle_third}}日之前所有货款</span></span>
                                {{?? it.settle_cycle_first == 6}}<span>第六个月{{=it.settle_cycle_second}}日前，结算{{=it.settle_cycle_third}}日之前所有货款</span></span>
                            {{ } }}

                    </td>
                </tr>
                <tr>
                    <td>
                        <span>合同结账周期: <span>{{=it.checkout_cycle}}</span></span>
                    </td>
                </tr>
                </thead>
            </table>
        </div>
            </script>
        </div>
        <div class=" pd-5 bg-1 bk-gray mt-10">
            <div class="va-m pl-10 lh-50 f-17 f-16">
                <strong>账户管理</strong>
                <a class="f-r mr-20 c-color f-14" onclick="relation_edit('账户管理编辑','relation_edit.html')">编辑</a>
            </div>
            <table class="table table-border table-bordered table-bg table-sort" id="datatable">
                <thead>
                <tr class="text-c">
                    <th width="50">总账号</th>
                    <th width="50">授信额度</th>
                    <th width="50">分账号</th>
                    <th width="50">授信额度</th>
                    <th width="50">审批账号</th>
                </tr>
                </thead>
                <tbody class="shun" id="account_list">
                    <script id="account_bob" type="text/x-dot-template">
                        {{if( it && it.length>0 ){ }}
                        {{ for(var i=0, catlen=it.length; i< catlen; i++) { }}
                        <tr class="text-c">
                            <th width="50">{{=it[i].total_account}}</th>
                            <th width="50">{{=it[i].total_limit}}</th>
                            <th width="50">{{=it[i].sub_account}}</th>
                            <th width="50">{{=it[i].sub_limit}}</th>
                            <th width="50">{{=it[i].audit_account}}</th>
                        </tr>
                        {{ } }}
                        {{ }else{ }}
                        <div>暂无数据</div>
                        {{ } }}
                    </script>
                </tbody>
            </table>
            <div class="va-m pl-10 lh-50 f-17 f-16">
                <strong>合同版本管理</strong>
            </div>
            <table class="table table-border table-bordered table-bg table-sort">
                <thead>
                <tr class="text-c">
                    <th width="50">版本号</th>
                    <th width="50">合同号</th>
                    <th width="50">生成时间</th>
                    <th width="50">操作人</th>
                </tr>
                </thead>
                <tbody class="shun" id="edition_lsit">
                    <script id="edition_bob" type="text/x-dot-template">
                        {{if( it && it.length>0 ){ }}
                        {{ for(var i=0, catlen=it.length; i< catlen; i++) { }}
                            <tr class="text-c" >
                                <th width="50">{{=it[i].contract_version}}</th>
                                <th width="50">{{=it[i].contract_num}}</th>
                                {{? it[i].update_date==null}}
                                <th width="50"></th>
                                {{??}}
                                <th width="50">{{=it[i].update_date}}</th>
                                {{}}}
                                {{? it[i].update_name==null}}
                                <th width="50"></th>
                                {{??}}
                                <th width="50">{{=it[i].update_name}}</th>
                                {{}}}
                            </tr>
                        {{ } }}
                        {{ }else{ }}
                        <div>暂无数据</div>
                        {{ } }}
                    </script>
                </tbody>
            </table>
        </div>
    </form>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../ht-js/contract/contr_see.js?rev=@@hash"></script>
<script type="text/javascript">
    /*客户信息编辑*/
    var customerCode =getQueryString('customerCode'),
        oldSysContractID=getQueryString("oldSysContractID"),
        contractID=getQueryString('contract_id'),
        customerId=getQueryString('customerId'),
        belongCustomerCode=getQueryString('id'),
        contract_num=getQueryString('contract_num'),
        credit=getQueryString('credit'),
        xin_contract_num=getQueryString('xin_contract_num');
    var huan_contrdi=window.localStorage.getItem("new_contract_id")
    if(huan_contrdi!=null){
        contractID=huan_contrdi
    }
    function basic_aedit(title,url,id,name,purchase_goods_intro){
        var index = layer.open({
            type: 2,
            title: title,
            content: url+'?customerCode='+customerCode+'&oldSysContractID='+oldSysContractID+'&contractID='+contractID+'&customerId='+customerId+'&operate_manager_id='+id+'&operate_manager_name='+name+'&purchase_goods_intro='+purchase_goods_intro
        });
        layer.full(index);
    }
    /*签约信息编辑*/
    function ood_edit(title,url,price_system,express_policy,contract_credit,tick_quota,checkout_cycle,credit,payment_date,balance_way,balance_day,balance_remark,settle_cycle_first,settle_cycle_second,settle_cycle_third,purchase_goods_intro,customer_type) {
        sessionStorage.setItem("customer_type",customer_type);
        var index = layer.open({
            type: 2,
            title: title,
            content: url+'?id='+belongCustomerCode+'&price_system='+price_system+'&express_policy='+express_policy+'&contract_credit='+contract_credit+'&tick_quota='+tick_quota+'&checkout_cycle='+checkout_cycle+'&credit='+credit+'&payment_date='+payment_date+'&balance_way='+balance_way+'&balance_day='+balance_day+'&balance_remark='+balance_remark+'&customerId='+customerId+'&contractID='+contractID+'&settle_cycle_first='+settle_cycle_first+'&settle_cycle_second='+settle_cycle_second+'&settle_cycle_third='+settle_cycle_third+'&purchase_goods_intro='+purchase_goods_intro
        });
        layer.full(index);
    }
    /*账户管理编辑*/
    function relation_edit(title,url){
        var index = layer.open({
            type: 2,
            title: title,
            content: url+'?customerCode='+customerCode+'&oldSysContractID='+oldSysContractID+'&contractID='+contractID+'&customerId='+customerId+'&id='+belongCustomerCode+'&contract_num='+contract_num+'&credit='+credit+'&xin_contract_num='+xin_contract_num+'&customerId='+customerId
        });
        layer.full(index);
    }
    /*授权收货人*/
    function more_edit(title,url){
        var index = layer.open({
            type: 2,
            title: title,
            content: url+'?customerCode='+customerCode+'&oldSysContractID='+oldSysContractID+'&contractID='+contractID+'&customerId='+customerId+'&id='+belongCustomerCode+'&contract_num='+contract_num+'&credit='+credit+'&xin_contract_num='+xin_contract_num+'&customerId='+customerId
        });
        layer.full(index);
    }
    web.tomer_see()
</script>
</body>
</html>